import http from "../utils/http"

export const getList = (url: string, page_size = 10, page: number, cx?: string) => {
 
  if (url === "enroll") {
    return http.get(`/get/${url}/list/`)
  } else {
    return http.get(`/get/${url}/list/`, {
      page_size,
      page,
      cx
    })
  }
} 